'''
    Description: embustest remote command client demo.
    Author:      ycl
    Date:        2023-7-14
'''

import remote_cmd_client

def candump_recv(paras):
    print('candump:',paras)
    pass

def lindump_recv(paras):
    print('lindump',paras)
    pass

client = remote_cmd_client.EMRC_Client(server_ip='192.168.10.66', server_port=12000)
client.start()
client.candump_subscribe(candump_recv)
client.lindump_subscribe(lindump_recv)
client.cansend(ch="1",loop=5,interval=1000,frame="102#std#e#8#EEEEEEEEFFFFFFFF")
